home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / RGASM.RAR / ASMCODE.EXE / CHAPT6 / DETCOMP.BAT next >
Encoding:
DOS Batch File  |  1993-02-25  |  1.3 KB  |  56 lines

  1. @Echo off
  2. Echo.
  3. Echo The BAT-file %0 is intended for determining the type of your computer
  4. Echo.
  5. detpc
  6. If ErrorLevel 1 GoTo More0
  7. Echo Type 0: Your computer is not recognized
  8. GoTo EndProc
  9. :More0
  10. If ErrorLevel 2 GoTo More1
  11. Echo Type 1: Your computer is IBM PS/2 model 80
  12. GoTo EndProc
  13. :More1
  14. If ErrorLevel 3 GoTo More2
  15. Echo Type 2: Your computer is IBM PC Convertible
  16. GoTo EndProc
  17. :More2
  18. If ErrorLevel 4 GoTo More3
  19. Echo Type 3: Your computer is IBM PS/2 model 30
  20. GoTo EndProc
  21. :More3
  22. If ErrorLevel 5 GoTo More4
  23. Echo Type 4: Your computer is PC XT extended
  24. GoTo EndProc
  25. :More4
  26. If ErrorLevel 6 GoTo More5
  27. Echo Type 5: Your computer is IBM PC-AT or PS/2 model 50 or 60
  28. GoTo EndProc
  29. :More5
  30. If ErrorLevel 7 GoTo More6
  31. Echo Type 6: Your computer is IBM PC-JR
  32. GoTo EndProc
  33. :More6
  34. If ErrorLevel 8 GoTo More7
  35. Echo Type 7: Your computer is IBM PC-XT 
  36. GoTo EndProc
  37. :More7
  38. If ErrorLevel 9 GoTo More8
  39. Echo Type 8: Your computer is IBM PC
  40. GoTo EndProc
  41. :More8
  42. If ErrorLevel 10 GoTo More9
  43. Echo Type 9: Your computer is Compaq XT or Compaq Plus
  44. GoTo EndProc
  45. :More9
  46. If ErrorLevel 11 GoTo More10
  47. Echo Type 10: Your computer is Sperry PC
  48. GoTo EndProc
  49. :More10
  50. If ErrorLevel 12 GoTo More11
  51. Echo Type 11: Your computer is Compaq PC or Compaq Deskpro
  52. GoTo EndProc
  53. :More11
  54. Echo Type 12 or higher: Your computer is not recognized
  55. :EndProc
  56.